package Java_3_1;

import java.util.Scanner;

public class Java_3_1_10 {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=0;
		while(a<30) {
			String b=sc.next();
			if(!b.equals("y")) {
				break;
			}else {
				++a;
				
			}
			System.out.println(a);
		}

	}

}
